<?php
class GlobalHomePage extends BasePage
{
	public function captchaImageValidate($sender, $param) {
		if(!$this->captcha->isCodeValid($param->Value)) {
			$param->IsValid=false;
			$this->captchaAnswer->TextBox->Text ='';
		}
		
	}
	public function onLoad($param){
		parent::onLoad($param);
		parent::loadDAO("MySQLSqlmap");
		$visitorTracking = $this->dao->queryForObject("GetVisitorTracking");
		echo $visitorTracking->id;
		$visitorTracking->visit_count = 2;
		$visitorTracking->save();
		
	}
}

?>

